package com.example.demo.profile;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.Environment;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by liujiahao on 2018/11/28.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = Animalconfigs.class)
public class ConfigTest {
    @Autowired
    Animals animals;
    @Autowired
    Environment env;
    @Value("#{T(System).currentTimeMillis()}")
    private String name;
    @Test
    public void test(){
        System.out.println(name);
    }
}
